<template>
<section class="main">
  <div class="crumbs">
    <el-breadcrumb separator="/">
      <el-breadcrumb-item>
        <i class="el-icon-rank"></i> 拖拽组件
      </el-breadcrumb-item>
      <el-breadcrumb-item>拖拽弹框</el-breadcrumb-item>
    </el-breadcrumb>
  </div>
  <div class="container">
    <p>通过指令 v-dialogDrag 使 Dialog 对话框具有可拖拽的功能。</p>
    <br>
    <el-button type="primary" @click="visible = true;">点我弹框</el-button>
  </div>
  <!-- <el-dialog v-dialogDrag title="拖拽弹框" center :visible.sync="visible" width="30%">
    我是一个可以拖拽的对话框！
    <span slot="footer" class="dialog-footer">
      <el-button @click="visible = false">取 消</el-button>
      <el-button type="primary" @click="visible = false">确 定</el-button>
    </span>
  </el-dialog> -->
</section>
</template>

<script>
export default {
  data() {
    return {
      visible: false,
      allImg: [
        "http://image.zhangxinxu.com/image/study/s/s256/mm1.jpg",
        "http://image.zhangxinxu.com/image/study/s/s256/mm2.jpg",
        "http://image.zhangxinxu.com/image/study/s/s256/mm3.jpg",
        "http://image.zhangxinxu.com/image/study/s/s256/mm4.jpg",
        "http://image.zhangxinxu.com/image/study/s/s256/mm5.jpg",
        "http://image.zhangxinxu.com/image/study/s/s256/mm6.jpg",
        "http://image.zhangxinxu.com/image/study/s/s256/mm7.jpg",
        "http://image.zhangxinxu.com/image/study/s/s256/mm8.jpg",
        "http://image.zhangxinxu.com/image/study/s/s256/mm9.jpg",
        "http://image.zhangxinxu.com/image/study/s/s256/mm10.jpg",
        "http://image.zhangxinxu.com/image/study/s/s256/mm11.jpg",
      ]
    }
  },
  methods: {
    getImg() {

    }
  }
}
</script>
